
// 频道列表模块

import request from '@/utils/request.js'
// 获取全部频道列表
export const getChannelsList = () => {
  return request({
    method: 'get',
    url: '/v1_0/channels'

  })
}

// 用户添加频道列表

export const addUserChannels = channels => {
  return request({
    method: 'PATCH',
    url: '/v1_0/user/channels',
    data: {
      channels
    }
  })
}

export const deleteUserChannels = channelId => {
  return request({
    method: 'delete',
    url: `/v1_0/user/channels/${channelId}`

  })
}
